﻿namespace CSharpPro2._0918;

public class Phone
{
    public string brand { get; set; }
    public int weight { get; set; }
    public long camera { get; set; }
    public int price { get; set; }

    public Phone(string brand, int weight, long camera, int price)
    {
        this.brand = brand;
        this.weight = weight;
        this.camera = camera;
        this.price = price;
    }
    public void Print()
    {
        Console.WriteLine($"品牌: {brand}");
        Console.WriteLine($"重量:{weight}g");
        Console.WriteLine($"后置摄像头像素:{camera}");
        Console.WriteLine($"价格:{price}");
    }
}
